
import request from '@/interceptor/axios';
//跳转权限判断
// function initRoot(id){
//     axios.post("http://localhost:8888/hwy/cater/user/initRoot"+id)
//                   .then((response) => {
//                     console.log(response);
//                   })
//                   .catch(function (error) {
//                   console.log(error)
//              });
// }

export const initRoot = (id) => {
    return request({
        url: 'http://localhost:8888/hwy/cater/user/initRoot/'+id,
        method: 'post',
    });
};
